home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 120
/
Vol 120.iso
/
games
/
asteroid.swf
/
scripts
/
__Packages
/
com
/
evilfree
/
astroidsRevenge
/
ShipMineAlly.as
< prev
next >
Wrap
Text File
|
2010-11-09
|
7KB
|
212 lines
function §\x01\x02§()
{
return 2623 % 511 * 5;
}
var §\x01§ = 203 + "\x01\x02"();
while(true)
{
if(eval("\x01") == 543)
{
set("\x01",eval("\x01") + 65);
§§push(true);
}
else if(eval("\x01") == 608)
{
set("\x01",eval("\x01") - 216);
if(function §\x01\x02§()
{
return 2623 % 511 * 5;
})
{
set("\x01",eval("\x01") + 157);
}
}
else if(eval("\x01") == 329)
{
set("\x01",eval("\x01") - 263);
§§push("\x0f");
§§push(1);
}
else
{
if(eval("\x01") == 392)
{
set("\x01",eval("\x01") + 157);
set(function §\x01\x02§()
{
return 2623 % 511 * 5;
},eval("\x01") + 457);
break;
}
if(eval("\x01") == 195)
{
set("\x01",eval("\x01") + 569);
§§push("\x0f");
}
else if(eval("\x01") == 800)
{
set("\x01",eval("\x01") - 464);
if(function §\x01\x02§()
{
return 2623 % 511 * 5;
})
{
set("\x01",eval("\x01") + 336);
}
}
else if(eval("\x01") == 967)
{
set("\x01",eval("\x01") - 167);
§§push(!function §\x01\x02§()
{
return 2623 % 511 * 5;
});
}
else if(eval("\x01") == 764)
{
set("\x01",eval("\x01") + 203);
§§push(eval(function §\x01\x02§()
{
return 2623 % 511 * 5;
}));
}
else if(eval("\x01") == 549)
{
set("\x01",eval("\x01") - 220);
}
else
{
if(eval("\x01") == 672)
{
set("\x01",eval("\x01") + 68);
if(!_global.com)
{
_global.com = new Object();
}
function §\x01\x02§()
{
return 2623 % 511 * 5;
}
if(!_global.com.evilfree)
{
_global.com.evilfree = new Object();
}
§§pop();
if(!_global.com.evilfree.astroidsRevenge)
{
_global.com.evilfree.astroidsRevenge = new Object();
}
§§pop();
if(!_global.com.evilfree.astroidsRevenge.ShipMineAlly)
{
com.evilfree.astroidsRevenge.ShipMineAlly extends com.evilfree.astroidsRevenge.ShipMine;
var _loc2_ = com.evilfree.astroidsRevenge.ShipMineAlly = function(m, target_mc, s)
{
super(m,target_mc,s);
this.mineType = "ally";
}.prototype;
_loc2_.place_mc = function(target_mc)
{
this.myDepth = target_mc.getNextHighestDepth();
this.my_mc = target_mc.attachMovie("mineShipAlly","ship" + this.myDepth,this.myDepth);
};
_loc2_.avoidThese = function(asteroidList)
{
if(asteroidList == undefined)
{
return undefined;
}
var _loc12_ = asteroidList.length;
var _loc4_ = 0;
while(_loc4_ < _loc12_)
{
var _loc2_ = asteroidList[_loc4_];
var _loc5_ = this.getTargetXDistance(_loc2_);
var _loc6_ = this.getTargetYDistance(_loc2_);
var _loc3_ = Math.sqrt(_loc5_ * _loc5_ + _loc6_ * _loc6_);
if(_loc3_ < _loc2_.getSize() / 2 + this.size / 2)
{
if(_loc2_ != this.main.getPlayerAsteroid())
{
_loc2_.bulletHitMe(this.size * 5);
}
this.blowUp();
return 1;
}
if(_loc3_ < 150)
{
var _loc8_ = this.myAtan(_loc6_,_loc5_);
var _loc10_ = this.myCos(_loc8_);
var _loc9_ = this.mySin(_loc8_);
var _loc7_ = (150 - _loc3_) / 150;
this.xSpeed += 2 * _loc10_ * _loc7_;
this.ySpeed += 2 * _loc9_ * _loc7_;
}
_loc4_ = _loc4_ + 1;
}
return 0;
};
_loc2_.damageThese = function(asteroidList)
{
if(asteroidList == undefined)
{
return undefined;
}
var _loc10_ = asteroidList.length;
var _loc4_ = 0;
while(_loc4_ < _loc10_)
{
var _loc2_ = asteroidList[_loc4_];
var _loc6_ = this.getTargetXDistance(_loc2_);
var _loc7_ = this.getTargetYDistance(_loc2_);
var _loc5_ = Math.sqrt(_loc6_ * _loc6_ + _loc7_ * _loc7_);
var _loc3_ = this.size * 2 + _loc2_.getSize();
if(_loc5_ < _loc3_)
{
var _loc8_ = (_loc3_ - _loc5_) / _loc3_;
if(_loc2_ != this.main.getPlayerAsteroid())
{
_loc2_.bulletHitMe(this.size * 2 * _loc8_);
}
}
_loc4_ = _loc4_ + 1;
}
return 0;
};
§§push(ASSetPropFlags(com.evilfree.astroidsRevenge.ShipMineAlly.prototype,null,1));
}
§§pop();
break;
}
if(eval("\x01") == 336)
{
set("\x01",eval("\x01") + 336);
}
else
{
if(eval("\x01") == 740)
{
set("\x01",eval("\x01") - 740);
break;
}
if(eval("\x01") == 436)
{
set("\x01",eval("\x01") - 107);
}
else
{
if(eval("\x01") != 66)
{
break;
}
set("\x01",eval("\x01") + 129);
var §§pop() = function §\x01\x02§()
{
return 2623 % 511 * 5;
};
}
}
}
}
}